package com.karaoke.android.player.videocache.sourcestorage;

import android.content.Context;

import com.karaoke.android.player.videocache.sourcestorage.*;
import com.karaoke.android.player.videocache.sourcestorage.NoSourceInfoStorage;

/**
 * Simple factory for {@link com.karaoke.android.player.videocache.sourcestorage.SourceInfoStorage}.
 *
 * @author Alexey Danilov (danikula@gmail.com).
 */
public class SourceInfoStorageFactory {

    public static com.karaoke.android.player.videocache.sourcestorage.SourceInfoStorage newSourceInfoStorage(Context context) {
        return new DatabaseSourceInfoStorage(context);
    }

    public static com.karaoke.android.player.videocache.sourcestorage.SourceInfoStorage newEmptySourceInfoStorage() {
        return new NoSourceInfoStorage();
    }
}
